package com.meichis.yndms.vm;

import androidx.lifecycle.MutableLiveData;

import com.amap.api.maps2d.model.Marker;
import com.meichis.yndms.model.VstTravel;
import com.meichis.yndms.repository.manager.VstTravelManager;

import java.util.List;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-05-08 15:26
 */
public class VstTravelVM extends MyViewModel {
    private MutableLiveData<List<VstTravel>> vstTravelList;
    private String staffID = "";
    public Marker curShowWindowMarker;

    public MutableLiveData<List<VstTravel>> getVstTravelList() {
        if (vstTravelList == null){
            vstTravelList = new MutableLiveData<>();
        }
        return vstTravelList;
    }

    public void setStaffID(String staffID) {
        this.staffID = staffID;
    }

    public void GetYWRBFGJ(int IDate) {
        VstTravelManager.getInstance().GetYWRBFGJ(getShowDialog(), getUserInfo().getValue().getOrgId(),
                staffID,IDate, getVstTravelList());
    }

}
